import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

// https://vitejs.dev/config/
export default ({ mode }) => defineConfig({
    ...('production' === mode ? {
        base: '/admin/',
    } : {}),

    build: {
        ...('production' === mode ? {
            outDir: '../public/admin',
        } : {}),
    },

    plugins: [
        vue({
            refTransform : true,
        }),
    ],
});
